<%-- 
    Document   : formECUE
    Created on : 22 mars 2013, 00:42:53
    Author     : ali
--%>

<%@page import="java.util.HashMap"%>
<%@page import="java.util.ArrayList"%>
<%@page import="EDT.obj.Formation"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
                
        <title>Affecter un EC à une UE </title>
            <link rel="stylesheet" href="Accueil.css" />
            <link rel="SHORTCUT ICON" href="./edt.jpg" />
    </head>


    <body>    
         
    <section>
           
    <!--<form method='POST' action='PromoNivGradForm.do'> -->
   <%
    String form ="";
    
    
    ArrayList<Formation> formation = new ArrayList<Formation>();
    
    
        formation = EDT.api.API.getFormation();
        session.setAttribute("formation", formation );
        
        //form += "<form method='POST' action='AffectECUEact.do' target='section'>";
        form += "<form method='POST' action='FormECUE2.do' target='section'>";
        
        form += "<div class='commentaire'>";
        form += "<fieldset>";
        
        
        form +="<legend>   Affecter un EC à une UE  :   </legend>";
        
        form +="Choisissez une formation : <br/>";

        form +="<select name='formation'>";
        for (Formation f : formation)
        form +="    <option value='"+f.getId()+"'>"+f.getNom()+" Expire:"+f.getAnneeEx()+"</option>";
        form +="</select><br/><br/>";
              
       
        form += "<input type='submit' value='valider'/><br/>";
        out.println(form);
            
    %>
    

    <html:errors/> 
    
    </fieldset>

    </div>

    </form>
         
    </section>
    </body>
</html>
